package edu.its.dreamteam.web.components;

import org.apache.tapestry.MarkupWriter;
import org.apache.tapestry.annotations.Parameter;
import org.apache.tapestry.ioc.annotations.Inject;

import edu.its.dreamteam.daf.beans.DraftPlayer;
import edu.its.dreamteam.daf.dao.IDraftPlayerDao;

public class OutputBid {
	@Parameter
    private String idDraftPlayer;
	@Inject
	private IDraftPlayerDao draftPlayerDao;
	
	public IDraftPlayerDao getDraftPlayerDao() {
		return draftPlayerDao;
	}
	void beginRender(MarkupWriter writer)
    {
		DraftPlayer draftPlayer =(DraftPlayer)getDraftPlayerDao().findByPrimaryKey(idDraftPlayer);	
        writer.write(String.valueOf(draftPlayer.getBid()));
    }
}
